/**
* This file is part of mobileworks.
*
* mobileworks is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* You should have received a copy of the GNU General Public License
* along with dev.clipall.  If not, see <http://www.gnu.org/licenses/>.
*
* https://code.google.com/p/mobileworks/
*/

/*
 * Util.java
 * Created on May 2, 2008, 11:49 PM
 */

package utils;

/**
 *
 * @author Erol Hira
 */
public class Util {
    
    
    public Util() {
    }
    
    public static byte[] subArrayOf(byte[] array, int index, int length){
        
        byte[] bytes = new byte[length];
        for(int i = 0; i < length; i++){
            bytes[i] = array[i];
        }
        
        return bytes;
    }
    
    /**
     *  value : 1 --> true
     *  value : 0 --> false 
     */
    public static boolean booleanValue(String value){
        return value.equals("0") == false;
    }        
    
}
